/*
 * 
 */
package kasgroup1;
import java.util.ArrayList;
/**
 * A class representing KAS.
 * @author Rúni Terjason Hansen
 * 
 */
public class KASGroup1 {
    private ArrayList<Conference> conferences;
    
    public KASGroup1() {
        conferences = new ArrayList<>();
    }
    
    /**
    * Returns the Conference ArrayList.
    * @return conferences
    */
    public void addConference(Conference p_conference)
    {
       conferences.add(p_conference);
    }
    /**
    * Returns the Conference ArrayList.
    * @return conferences
    */
    public ArrayList getAttendees(){
        return conferences;
    }
    
    /*
     * List confernces.
     */
    public void listConferences()
    {
        for(Conference conference : conferences)
        {
            System.out.println(conference.getName());
        }
    }
}
